@import (less) "../../common/css/container.less";
@navHeight: 32px;
@navMarginTop: 22px;
@navMarginBottom: 16px;
@headerHeight: @navHeight + @navMarginTop + @navMarginBottom;
@mFontsize: 17px;
@smFontsize: 14px;
@searchInputHeight: 32px;

.navBar {
    position: absolute;
    max-height: 0;
    background-color: #333c47;
    width: 110px;
    visibility: hidden;
    transition: max-height .3s linear;
    color: #fff;
}
.header {
    // .clientMinWidth;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    position: absolute;
    height: @headerHeight;
    width: 100%;
    z-index: 10;

    // &:hover {
    //     background-color:#1D2E8A;
    // }
    .navContainer {
        .container;
        padding-top: @navMarginTop;
        height: @navHeight;
        .navList {
            height: @navHeight + @navMarginBottom;
            font-size: @mFontsize;
            img {
                margin-top: 3px;
                vertical-align: top;
            }
            .navAll {
                display: inline-block;
                vertical-align:top;
                .navOne {
                    height: @navHeight;
                    display: inline-block;
                    padding: 0 15px;
                    padding-bottom: @navMarginBottom;
                    position: relative;
                    &:first-child {
                        padding-left: 50px;
                    }
                    .navLink {
                        line-height: @navHeight;
                        height: @navHeight;
                        color: inherit;
                        display: block;
                        position: relative;                     
                        &::before {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 100%;
                            width: 0;
                            height: 100%;
                            border-bottom: 1px solid #fff;
                            transition: all .2s ease-in-out 0s; 
                        }
                        &.activePage::before {
                            left: 0%;
                            width: 100%;
                        }
                        &.activePage {
                            cursor: default;
                        }
                        &:hover {
                            // border-bottom: 2px solid #fff;
                            text-decoration: none;
                            &::before {
                                width: 100%;
                                left: 0;
                                transition-delay: 0.1s;
                            }
                        }
                    }                  
                }
                .navOne:hover~.navOne .navLink::before {
                    left: 0;
                }
            }
            .funcModule {
                float: right;
                height: @searchInputHeight;
                // margin-top: 8px;
                .search {
                    // width: 222px;
                    display: inline-block;
                    height: @navHeight;
                    position: relative;
                    vertical-align: top;
                    .searchInput {
                        width: 242px;
                        border: 0;
                        line-height: @searchInputHeight;
                        height: @searchInputHeight;
                        padding: 0 33px 0 20px;
                        // opacity: .8;
                        font-size: @smFontsize;
                        color: #000;
                        border-radius: 2px;
                        background-color: #fff;
                        transition: width .6s linear;
                        box-sizing: border-box;
                        &.hidden {
                            width: 0;
                            padding: 0;
                        }
                        // transition: width .3s linear;
                        // &:hover {
                        //     width: 200px;
                        // }
                    }
                    .searchBtn {
                        cursor: pointer;
                        position: absolute;
                        top: 6px;
                        right: 8px;
                        width: 20px;
                        height: 20px;
                        fill: #707070;
                        transition: transform .6s linear;
                        &.rotate {
                            fill: #fdfeff;
                            transform: rotate(360deg)
                        }
                    }
                }
                .languageTabs {
                    line-height: @navHeight;
                    height: @navHeight;
                    display: inline-block;
                    padding: 0 8px;
                    li {
                        float: left;
                        cursor: pointer;
                        color: #aaa;
                        span.text {
                            padding: 0 8px;
                            // border-right: 2px solid #fff;
                        }
                        span.lineBetween {
                            width: 1px;
                            background-color: #aaa;
                            height: 14px;
                            display: inline-block;
                            transform: translateY(2px);
                        }
                        &:last-of-type>span.lineBetween {
                            width: 0;
                        }
                        &.active {
                            font-weight: 400;
                            color: #fff;
                        }
                    }
                }
            }
        }
    }
    &:hover .activePage::before {
        left: 100%!important;
        width: 0%!important;
    }
}

    
